package com.face.server.service;

import com.face.server.entity.DormitoryBuild;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.security.Principal;

/**
 * Created by ryan on 2018/3/17.
 */
public interface DormitoryBuildService {
    Integer countStuInDorm();

    Integer countDormOccupied();

    Integer countVisitors();

    Page<DormitoryBuild> listDormBuildInfo(Pageable pageable, Integer buildNum);

    Page<DormitoryBuild> listDormBuildInfo(Pageable pageable, Integer buildNum, Principal principal);
}
